import { ref, reactive } from 'vue'
import { defineStore } from 'pinia'

export const useCatagoryStore = defineStore('catagory', () => {
  const catagoryData = reactive({
    list:[],
    level0:[],
    level1:[],
    level2:[],
    level3:[],
    currentLevel:[],
  })
  // 激活id
  const activeLevel=reactive({
    level0Id:'',
    level1Id:'',
    level2Id:'',
    level3Id:'',//
})
  const goodDetailData=ref();

  return { catagoryData,activeLevel,goodDetailData}
})
